from rest_framework import serializers
from rest_framework.request import Request
from rest_framework.test import APIRequestFactory
from src.settings import *
factory = APIRequestFactory()
request = factory.get('/')
request._current_scheme_host= REST_FRAMEWORK_DOMAIN # setting the server domain

serializer_context = {
    'request': Request(request),
}
